package com.leancloud.circle.adapter;

import com.avos.avoscloud.AVObject;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

public class AttentionAdapter extends BaseQuickAdapter<AVObject, BaseViewHolder> {

    public AttentionAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(final BaseViewHolder helper, final AVObject item) {
//        AVUser avUser = item.getAVUser(TARGET_AV_USER);

//        String nike = avUser.getString(USER_NICK_NAME);
//        String headUrl = avUser.getString(USER_HEAD_ICON);
//        String sing = avUser.getString(USER_SIGN);

//        if (sing == null || sing.isEmpty()) {
//            sing = "这个人很懒,什么也没留下";
//        }
//
//        ImageView headImg = helper.itemView.findViewById(R.id.attention_item_head);
//        GlideManager.loadCircleImg(headUrl, headImg, R.mipmap.icon_default_head);
//
//        helper.setText(R.id.attention_item_name_tx, nike);
//        helper.setText(R.id.attention_item_sing, sing);
//
//        TextView attentionTx = helper.itemView.findViewById(R.id.attention_item_attention_tx);
//
//        attentionTx.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                remove(helper.getLayoutPosition());
//                notifyDataSetChanged();
//                AVGlobal.getImpl().deleteAttention(item.getObjectId(), null);
//            }
//        });
//        attentionTx.setSelected(true);
    }
}
